package com.example.order.mapper;

import com.example.model.domain.entity.order.RefundInfo;
import org.apache.ibatis.annotations.Param;

/**
 * @Author juzipi
 * @Date 2021/7/26 8:44
 * @Info
 */
public interface RefundInfoMapper {


    /**
     * 查询退款信息
     * @param orderId 订单id
     * @param paymentType 支付方式
     * @return
     */
    RefundInfo selectRefundInfoByOrderIdAndPaymentType(@Param("orderId") Long orderId,@Param("paymentType") Integer paymentType);


    /**
     * 保存退款信息
     * @param refundInfo
     * @return
     */
    Integer insertRefundInfo(RefundInfo refundInfo);

    /**
     * 更新退款信息
     * @param refundInfo
     * @return
     */
    Integer updateRefundInfo(RefundInfo refundInfo);
}
